package com.zhdl.modules.prefiresys.entity;

import com.project.common.bean.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "alarm_event")
public class EventRecords extends BaseEntity<EventRecords, String> {
    /**
     * ID
     */
    @Id
    @Column(length = 32)
    private String id;

    /**
     * 事件
     */
    @Column(name = "event_status")
    private boolean eventStatus;

    /**
     * 开始事件
     */
    @Column(name = "start_time")
    private String startTime;

    /**
     * 结束事件
     */
    @Column(name = "end_time")
    private String endTime;

    /**
     * 探测器ID
     */
    @Column(name = "detector_id",length = 32, nullable = false)
    private String detectorId; //deteId

    /**
     * 防区ID
     */
    @Column(name = "area_id",length = 32, nullable = false)
    private String areaId;

}
